import java.util.Scanner;

/*
  @author: 13813
  @date: 2024/11/12 14:25
*/
public class Array2Test02 {
    public static void main(String[] args) {
        String[][] arr = new String[50][3];

        Scanner scanner = new Scanner(System.in);
        int index = 0;
        do {
            String[] zhangsan = new String[3];
            //---------------存储姓名------------------------------------
            System.out.println("请输入姓名");
            String name = scanner.nextLine();
            zhangsan[0] = name;
            //---------------存储年龄------------------------------------
            System.out.println("请输入年龄");
            String age = scanner.nextLine();
            zhangsan[1] = age;
            //---------------存储性别------------------------------------
            System.out.println("请输入性别");
            String sex = scanner.nextLine();
            zhangsan[2] = sex;

            //---------------把一维数组存储到二维数组中------------------------------------
            arr[index] = zhangsan;
            index++;
        } while (true);

    }
}
